<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>父子组件传递基本数据</title>
    <script src="node_modules/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
    <introduce :title="msg"></introduce>
</div>
<script type="text/javascript">
    const introduce = {
        template: "<h2>{{title}}</h2>",
        //接收父组件的属性
        props: ["title"]
    };
    Vue.component("introduce", introduce);

    const app = new Vue({
        el: "#app",
        data: {
            msg: "父组件的msg属性数据内容"
        }
    });
</script>
</body>
</html>